﻿@model IEnumerable<Comisiones.Models.Tarifario>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            local
        </th>
        <th>
            puntoServicio
        </th>
        <th>
            comercio
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.local.loc_nombre)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.puntoServicio.psv_codigoDIR)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.comercio.com_RUC)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.tar_idTarifario }) |
            @Html.ActionLink("Details", "Details", new { id=item.tar_idTarifario }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.tar_idTarifario })
        </td>
    </tr>
}

</table>
